﻿<%@ Page Title="" Language="C#" MasterPageFile="~/RS.Master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="RealState.W.Register" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <section class="shadow-box clearfix">
						<div class="inner-box">
							<header class="entry-header">
								<h4 class="feature-title">Đăng ký</h4>
							</header>
							<table style="width:100%; margin-left:70px;border-collapse:separate;border-spacing:5px 5px;">
							<tr><td>Bạn là cá nhận hay doanh nghiệp</td><td>
							<asp:RadioButton ID="rdoUserType_1" runat="server" GroupName="rdoUserType" Text="Cá nhân"></asp:RadioButton>&nbsp;&nbsp;
							<asp:RadioButton ID="rdoUserType_2" runat="server" GroupName="rdoUserType" Text="Doanh nghiệp"></asp:RadioButton>
							</td></tr>
							<tr><td>Họ tên</td><td>
							<asp:UpdatePanel ID="UpdatePanel3" runat="server">
											<ContentTemplate>
							<asp:TextBox ID="txtFullname" runat="server"></asp:TextBox>
							 <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" SetFocusOnError="true" 
                                                    ErrorMessage="(*)Họ tên không được để trống" ControlToValidate="txtFullname"></asp:RequiredFieldValidator>
                                                    </ContentTemplate>
											</asp:UpdatePanel>
							</td></tr>
							<tr><td>Tên đăng nhập</td><td>
							<asp:UpdatePanel ID="UpdatePanel4" runat="server">
											<ContentTemplate>
							<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
							<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" SetFocusOnError="true" 
                                                    ErrorMessage="(*)Tên đăng nhập không được để trống" ControlToValidate="txtUserName"></asp:RequiredFieldValidator>
                             <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
                                 ErrorMessage="(*) Tên đăng nhập phải là email" ControlToValidate="txtUserName"
                                 SetFocusOnError="True"
                                 ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                 </ContentTemplate></asp:UpdatePanel></td></tr>
                                 
                                 <tr><td>Mật khẩu</td><td>
                                 <asp:UpdatePanel ID="UpdatePanel5" runat="server"><ContentTemplate>
                                 <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                                 <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" SetFocusOnError="true" 
                                                    ErrorMessage="(*)Mật khẩu không được để trống" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                                  </ContentTemplate></asp:UpdatePanel>
                                 </td></tr>
                                 <tr><td>Xác nhận mật khẩu</td><td>
                                 <asp:UpdatePanel ID="UpdatePanel6" runat="server"><ContentTemplate>
                                     <asp:TextBox ID="txtRepassword" runat="server" TextMode="Password"></asp:TextBox>
                                     <asp:CompareValidator runat="server" ID="Comp1" ControlToValidate="txtPassword" ControlToCompare="txtRepassword" Text="(*) Mật khẩu không trùng khớp" />
                                 </ContentTemplate></asp:UpdatePanel>
                                 </td></tr>
                                 <tr><td>Thành phố</td><td>
                                 
							<asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
							    <asp:DropDownList ID="drdCity" runat="server" 
                                        AutoPostBack="True" 
                                    onselectedindexchanged="drdCity_SelectedIndexChanged"></asp:DropDownList>
                                        </ContentTemplate>
                                    </asp:UpdatePanel>
                                    </td></tr>
							<tr><td>Quận huyện</td><td>
							<asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate>
							<asp:DropDownList ID="drdDistrict" runat="server"></asp:DropDownList>
							 </ContentTemplate>
                                    </asp:UpdatePanel>
							</td></tr>
							<tr><td>Số nhà / Tên đường</td><td><asp:TextBox ID="txtStreet" runat="server" Width="300px"></asp:TextBox></td></tr><tr><td>Số điện thoại</td><td><asp:TextBox ID="txtTel" runat="server"></asp:TextBox></td></tr><tr><td>Số di động</td><td><asp:TextBox ID="txtMobile" runat="server"></asp:TextBox></td></tr>
							<tr><td colspan="2" align="center"><asp:Button ID="Button1" runat="server" Text="Hoàn thành" CssClass="small-button-a"
                                    onclick="Button1_Click"></asp:Button></td></tr>
							</table>
						</div>
    </section>
</asp:Content>
